package com.hui10.mediaplayer.ui.fragment

import com.hui10.mediaplayer.adapter.YueDanAdapter
import com.hui10.mediaplayer.base.BaseListAdapter
import com.hui10.mediaplayer.base.BaseListFragment
import com.hui10.mediaplayer.base.BasePresenter
import com.hui10.mediaplayer.base.BaseView
import com.hui10.mediaplayer.model.YueDanBean
import com.hui10.mediaplayer.presenter.YueDanPresenter
import com.hui10.mediaplayer.widget.YueDanItemView

/**
 * Author: Created by lucus on 2019/5/24.
 * E-mail: mcphilex1989@gmail.com
 * Tel: 15652608401
 */
class YueDanFragment : BaseListFragment<YueDanBean, YueDanBean.PlayListsBean, YueDanItemView>() {

    override fun getSpecialAdapter(): BaseListAdapter<YueDanBean.PlayListsBean, YueDanItemView> {
        return YueDanAdapter()
    }

    override fun getSpecialPresenter(baseView: BaseView<YueDanBean>): BasePresenter<YueDanBean> {
        return YueDanPresenter(this)
    }

    override fun getList(response: YueDanBean?): List<YueDanBean.PlayListsBean>? {
        return response?.playLists
    }

}